package com.gaofeng.day06;

import java.util.StringJoiner;

public class stringjoiner {
    public static void main(String[] args) {
        int[] arr = {1,2,3};

        StringJoiner sj = new StringJoiner(",", "[", "]");

        sj.add("aaa").add("bbb").add("ccc");
        System.out.println(sj);
        System.out.println(sj.toString());
    }
}
